export const FlowStatusEnum = [
  { value: "0", label: "未开始" },
  { value: "1", label: "进行中" },
  { value: "2", label: "已结束" }
];

export const BillStatusEnum = [
  // { value: "1", label: "到货验收" },
  // { value: "5", label: "有监理隐蔽验收" },
  // { value: "6", label: "无监理隐蔽验收" },
  // { value: "7", label: "有监理土建竣工验收" },
  // { value: "8", label: "无监理土建竣工验收" },
  // { value: "9", label: "开工审批" },
  // { value: "10", label: "材料审批" },
  // { value: "11", label: "质量检查施工类" },
  // { value: "15", label: "质量检查设备类" },
  { value: "1015", label: "施工质量检查" },
  { value: "1016", label: "有监理施工材料验收" },
  { value: "1017", label: "无监理施工材料验收" },
  { value: "1018", label: "有监理隐蔽验收" },
  { value: "1019", label: "无监理隐蔽验收" },
  { value: "1020", label: "有监理施工试验&见证检测" },
  { value: "1021", label: "无监理施工试验&见证检测" },
  { value: "1022", label: "其他问题（随手拍）" },
  { value: "1030", label: "安全文明" },
  { value: "1032", label: "车辆出入" }
  // { value: "1001", label: "阶段事项" }
];

export const BillStatusMap = new Map([
  ["1", "到货验收"],
  ["5", "有监理隐蔽验收"],
  ["6", "无监理隐蔽验收"],
  ["7", "有监理土建竣工验收"],
  ["8", "无监理土建竣工验收"],
  ["9", "开工审批"],
  ["10", "材料审批"],
  ["11", "质量检查施工类"],
  ["15", "质量检查设备类"],
  ["1015", "施工质量检查"],
  ["1016", "有监理施工材料验收"],
  ["1017", "无监理施工材料验收"],
  ["1018", "有监理隐蔽验收"],
  ["1019", "无监理隐蔽验收"],
  ["1020", "有监理施工试验&见证检测"],
  ["1021", "无监理施工试验&见证检测"],
  ["1022", "其他问题（随手拍）"],
  ["1030", "安全文明"],
  ["1001", "阶段事项"],
  ["1002", "阶段事项"],
  ["1003", "阶段事项"],
  ["1004", "阶段事项"],
  ["1005", "阶段事项"],
  ["1006", "阶段事项"],
  ["1007", "阶段事项"],
  ["1008", "阶段事项"],
  ["1009", "阶段事项"],
  ["1101", "阶段事项"],
  ["1102", "阶段事项"],
  ["1103", "阶段事项"],
  ["1104", "阶段事项"],
  ["1105", "阶段事项"],
  ["1106", "阶段事项"],
  ["1107", "阶段事项"],
  ["1108", "阶段事项"],
  ["1031", "开工通知"],
  ["1032", "车辆出入"],
  ["1130", "设备类事项"],
  ["1131", "设备类事项"],
  ["1132", "设备类事项"],
  ["1133", "设备类事项"],
  ["1133", "设备类事项"],
  ["1134", "设备类事项"],
  ["1135", "设备类事项"],
  ["1136", "设备类事项"],
  ["1137", "设备类事项"],
  ["1138", "设备类事项"],
  ["1139", "设备类事项"],
  ["1140", "设备类事项"],
  ["1141", "设备类事项"],
  ["1142", "设备类事项"],
  ["1143", "设备类事项"],
  ["1144", "设备类事项"],
  ["1145", "设备类事项"],
  ["1146", "设备类事项"],
  ["1147", "设备类事项"],
  ["1148", "设备类事项"]
]);

export enum ProcessStatusEnum {
  ACT_010,
  ACT_011,
  ACT_012,
  ACT_013,
  ACT_014,
  ACT_015,
  ACT_016,
  END
}

export enum IsHandlerEnum {
  NO_EDIT,
  EDIT
}

export const FileTypes = {
  doc: "application/msword",
  docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
  xls: "application/vnd.ms-excel",
  xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
  pdf: "application/pdf",
  png: "image/png",
  jpg: "image/jpeg",
  jpeg: "image/jpeg"
};

export const xlsxTypes = {
  xls: "application/vnd.ms-excel",
  xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
};

export const uploadUrl =
  import.meta.env.VITE_BASE_URL + "/snow-admin/common/file/upload";

export const uploadUrlImport =
  import.meta.env.VITE_BASE_URL + "/snow-admin/qtyCheck/importInsContent";

export const acceptTypes = Object.values(FileTypes).join(",");

export const acceptXlsxTypes = Object.values(xlsxTypes).join(",");

// B类和A类项目的“设备类”的流程类型，审批页面用同一个即可
export const equipType = [
  "1001",
  "1002",
  "1003",
  "1004",
  "1005",
  "1006",
  "1007",
  "1008",
  "1009",
  "1101",
  "1102",
  "1103",
  "1104",
  "1105",
  "1106",
  "1107",
  "1108"
];
